import Fetch from '../util/fetch'
// import Vue from 'vue'
// let that = Vue.prototype

import { get , post , put} from "../util/request";
//
// 朱振虎
//

//首页数据
export const zzhHomeList = () => Fetch.get('/app/recommend/appIndex')
//banner
// export const zzhBanner = () => Fetch.get('/app/banner')
export const zzhBanner = () => Fetch.get('/app/banner')
//获取短信验证码
export const zzhSmsCode = (data) => Fetch.post('/app/smsCode',data)
//手机号注册
export const zzhLogin = (data) => Fetch.post('/app/login',data)
//修改密码
export const zzhReset = (data) => Fetch.post('/app/password',data)
//账号密码登录
// export const zzhP = (data) => Fetch.post('/app/password',data)




//
// 丁佳惠

//考点专练侧边栏
export const djhLeft = () => Fetch.get('/app/wap/classify')
// 考点专练右边内容
export const djhRight = (data) => Fetch.get(`/app/wap/quesBank/`+data.id)
//搜索
export const djhSearch = (value) => Fetch.get(`/app/wap/search/bank?bank=${value}`)




//
// 张雪涛
//轮播图
export const zxtbanner = () => Fetch.get('/app/banner')
//名师数据
export const zxtHomeList = () => Fetch.get('/app/recommend/appIndex')
//名师详情：http://120.53.31.103:84/api/app/courseInfo/basis_id=xxx
export const zxtcourseInfo = (id) => Fetch.get(`app/courseInfo/basis_id=${id}`)
//课程评论：http://120.53.31.103:84/api/app/courseComment
export const zxtcourseComment = (id) => Fetch.post(`app/courseComment?id=${id}`)
// 特色课：https://www.365msmk.com/api/app/courseBasis
export const zxtcourseBasis = (page) => Fetch.get(`/app/courseBasis?page=${page}`)


//
// 李承一
//

//
// 刘广来
// 
//进入页面的请求数据接口
export const lglGettingDataContainer = (data)=> Fetch.get(`/app/courseBasis?attr_val_id=${data.one},${data.xue}&order_by=${data.order}&course_type=${data.course_type}&page=${data.page}`)
//点击详情页面的请求数据接口
export const lglListRightXiang = (data)=> Fetch.get(`app/courseInfo/basis_id=${data}`)
//搜索数据的接口
export const lglSearchListContainer = (data)=> Fetch.get(`/app/courseBasis?page=${data.page}&course_type=0&keywords=${data.value}`)
//详情页面  发起请求  收藏数据的接口
export const lglCollectList = (data)=> Fetch.post(`/app/collect?course_basis_id=${data.id}&type=${data.type}`)
//详情页面 课程大纲
export const lglClassGang = (data)=> Fetch.post(`/app/courseChapter?id=${data.id}`)
// 详情页面的 评论 
export const lglPingLun = (data)=> Fetch.post(`/app/courseComment`,data)
//登录页面的 生日
export const lglTimeOne = (data)=> Fetch.post(`/app/user`,data)
//登录选择省     api/app/sonArea/0
export const lglSheng = ()=> Fetch.get(`/app/sonArea/0`)
//登录选择市
export const lglShi = (data)=> Fetch.get(`/app/sonArea/${data.id}`)
//登录选择区
export const lglQu = (id)=> Fetch.get(`/app/sonArea/${id}`)
//登录 修改地址 api/app/user
export const lglDiZhiXiuGai = (data)=> Fetch.put(`/app/user`,data);
//登录 图片的上传
export const lglupimg = (data)=> Fetch.post(`/app/public/img`,data);
//登录的 科目选择




//
// 杨婉婷
// 请求老师列表接口
export const ywtTeacherlist=()=>Fetch.get('app/otoCourse')

// 预约课程
export const ywtOrdercourse=(data)=>Fetch.get(`/app/teacher?id=${data.id}&page=${data.page}`)

// 讲师详情页
export function ywtGetTeacher(id) {
    return get('api/app/teacher/' + id)
}
// 讲师介绍
export function ywtGetTeacherInfo(id) {
    return get('api/app/teacher/info/' + id)
}
// 主讲课程
export function ywtGetMainLesson() {
    return post('api/app/teacher/mainCourse')
}

// 搜索（专用课程）
export function ywtGetbasic(params) {
    return get("api/app/courseBasis", params);
  }
  

